package com.example.demohystrixfeignconsumer;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class FeignFallBack implements DemoHystrixFeignConsumerApplication.UserloginService {
    @Override
    public Map myUserlogin(){
        HashMap<String, String> map = new HashMap<>();
        map.put("error Hystrix-Feign call", "服务器繁忙");
        return map;
    }
}
